package com.nchuoj.judger;

import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.amqp.support.converter.MessageConverter;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author GYJ
 */
@EnableFeignClients(basePackages = "com.feign.feign.requests")
@SpringBootApplication
@ComponentScan(basePackages = {"com.nchuoj.judger","com.feign.common.config"})
public class JudgerApplication {
    public static void main(String[] args) {
        SpringApplication.run(JudgerApplication.class,args);
    }

    @Bean
    public MessageConverter jsonMessageConverter(){
        return new Jackson2JsonMessageConverter();
    }
}
